package com.hkts.sinoiov.async;

import com.hkts.sinoiov.sinoiovHisTrack.entity.SinoiovHisTrack;
import com.hkts.sinoiov.sinoiovHisTrack.service.ISinoiovHisTrackService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;


/**
 * 业务层实现类 
 * 模块名称：
 * 
 * @author 张勇
 * @date 2020-11-05
 */
@Transactional
@Service("asyncServiceImpl")
@Slf4j
public class AsyncServiceImpl {
	@Autowired
	private ISinoiovHisTrackService hisTrackService;
	@Async
	public void saveBatchHisTrack(List<SinoiovHisTrack> param)  {
		hisTrackService.saveBatch(param);
	}
}

